Optimal. Leaf size=86 \[ -\frac {\sqrt {x^6-3 x^4+3 x^2} \left (3-2 x^2\right )}{8 x}-\frac {3 \sqrt {x^6-3 x^4+3 x^2} \sinh ^{-1}\left (\frac {3-2 x^2}{\sqrt {3}}\right )}{16 x \sqrt {x^4-3 x^2+3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {1996, 1903, 1107, 612, 619, 215} \[ -\frac {\sqrt {x^6-3 x^4+3 x^2} \left (3-2 x^2\right )}{8 x}-\frac {3 \sqrt {x^6-3 x^4+3 x^2} \sinh ^{-1}\left (\frac {3-2 x^2}{\sqrt {3}}\right )}{16 x \sqrt {x^4-3 x^2+3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 612
Rule 619
Rule 1107
Rule 1903
Rule 1996
Rubi steps
\begin {align*} \int \sqrt {x^2 \left (3-3 x^2+x^4\right )} \, dx &=\int \sqrt {3 x^2-3 x^4+x^6} \, dx\\ &=\frac {\sqrt {3 x^2-3 x^4+x^6} \int x \sqrt {3-3 x^2+x^4} \, dx}{x \sqrt {3-3 x^2+x^4}}\\ &=\frac {\sqrt {3 x^2-3 x^4+x^6} \operatorname {Subst}\left (\int \sqrt {3-3 x+x^2} \, dx,x,x^2\right )}{2 x \sqrt {3-3 x^2+x^4}}\\ &=-\frac {\left (3-2 x^2\right ) \sqrt {3 x^2-3 x^4+x^6}}{8 x}+\frac {\left (3 \sqrt {3 x^2-3 x^4+x^6}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {3-3 x+x^2}} \, dx,x,x^2\right )}{16 x \sqrt {3-3 x^2+x^4}}\\ &=-\frac {\left (3-2 x^2\right ) \sqrt {3 x^2-3 x^4+x^6}}{8 x}+\frac {\left (\sqrt {3} \sqrt {3 x^2-3 x^4+x^6}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{3}}} \, dx,x,-3+2 x^2\right )}{16 x \sqrt {3-3 x^2+x^4}}\\ &=-\frac {\left (3-2 x^2\right ) \sqrt {3 x^2-3 x^4+x^6}}{8 x}-\frac {3 \sqrt {3 x^2-3 x^4+x^6} \sinh ^{-1}\left (\frac {3-2 x^2}{\sqrt {3}}\right )}{16 x \sqrt {3-3 x^2+x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 70, normalized size = 0.81 \[ \frac {x \left (4 x^6-18 x^4+30 x^2+3 \sqrt {x^4-3 x^2+3} \sinh ^{-1}\left (\frac {2 x^2-3}{\sqrt {3}}\right )-18\right )}{16 \sqrt {x^2 \left (x^4-3 x^2+3\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.87, size = 70, normalized size = 0.81 \[ -\frac {12 \, x \log \left (-\frac {2 \, x^{3} - 3 \, x - 2 \, \sqrt {x^{6} - 3 \, x^{4} + 3 \, x^{2}}}{x}\right ) - 8 \, \sqrt {x^{6} - 3 \, x^{4} + 3 \, x^{2}} {\left (2 \, x^{2} - 3\right )} - 9 \, x}{64 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.51, size = 69, normalized size = 0.80 \[ \frac {1}{16} \, {\left (2 \, \sqrt {x^{4} - 3 \, x^{2} + 3} {\left (2 \, x^{2} - 3\right )} - 3 \, \log \left (-2 \, x^{2} + 2 \, \sqrt {x^{4} - 3 \, x^{2} + 3} + 3\right )\right )} \mathrm {sgn}\relax (x) + \frac {3}{16} \, {\left (2 \, \sqrt {3} + \log \left (2 \, \sqrt {3} + 3\right )\right )} \mathrm {sgn}\relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 81, normalized size = 0.94 \[ \frac {\sqrt {\left (x^{4}-3 x^{2}+3\right ) x^{2}}\, \left (4 \sqrt {x^{4}-3 x^{2}+3}\, x^{2}+3 \arcsinh \left (\frac {\sqrt {3}\, \left (2 x^{2}-3\right )}{3}\right )-6 \sqrt {x^{4}-3 x^{2}+3}\right )}{16 \sqrt {x^{4}-3 x^{2}+3}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {{\left (x^{4} - 3 \, x^{2} + 3\right )} x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {x^2\,\left (x^4-3\,x^2+3\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________